package com.spring.lazyInitialization;

public class Student {

	private String name;
	public Student(String name, Address address) {
		super();
		this.name = name;
		this.address = address;
	}
	private Address address;

	public Student() {
		System.out.println("Inside Student Constructor");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}
	@Override
	public	String toString(){
	return "Name "+ this.name +": @ "+ this.getAddress();	
	}
}
